<?php  
$redis = new redis();  
$redis->connect('127.0.0.1', 6379);  



//$redis->lPush('aaad', 'aaa1');
//$redis->lPush('aaad', 'aaa2');


//echo $redis->lsize('aaad');
//echo "<pre>";print_r($redis->lrange("aaad", 0, $redis->lsize('aaad')));echo "</pre>";


$a = array(2,5,3);


$r1 = $redis->expire('l2', 200);

echo "<pre>";print_r($r1);echo "</pre>";exit;




	
//$redis->hMset('user', array('id'=>1, 'username' => 'yueool', 'password' => '123456'));


//$result = $redis->hmGet('user:1', array('name', 'salary'));
//var_dump($result);exit;


?>